package com.thb.pay.api.merchant.fallback;

import com.thb.pay.api.merchant.MchAgentpayRecordServiceApi;
import com.thb.pay.api.merchant.vo.req.MchAgentpayRecordPageReq;
import com.thb.pay.api.merchant.vo.req.MchAgentpayRecordReq;
import com.thb.pay.api.merchant.vo.resp.MchAgentpayRecordVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class MchAgentpayRecordServiceApiFallbackFactory implements FallbackFactory<MchAgentpayRecordServiceApi> {


    @Override
    public MchAgentpayRecordServiceApi create(Throwable throwable) {
        return new MchAgentpayRecordServiceApi() {
            @Override
            public PageResult<MchAgentpayRecordVo> findPage(MchAgentpayRecordPageReq pageReq) {
                return null;
            }

            @Override
            public MchAgentpayRecordVo getById(Long id) {
                return null;
            }

            @Override
            public void add(MchAgentpayRecordReq mchAgentpayRecordReq) {

            }

            @Override
            public void update(MchAgentpayRecordReq mchAgentpayRecordReq) {

            }

            @Override
            public void deleteBatchIds(List<Long> ids) {

            }
        };
    }
}